package com.yvon.maple.service.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 注册
 *
 * @author : Yvon
 * @since : 2021-09-28
 */
@Data
@ApiModel("注册请求参数")
public class RegisterVO implements Serializable {

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号", required = true)
    @NotNull(message = "账号不能为空")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    @NotNull(message = "密码不能为空")
    private String password;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称", required = true)
    @NotNull(message = "昵称不能为空")
    private String nickname;
}
